<?php if(isset($this->error)){?>
loi
<?php }else{?>
<?php 
	header("Content-type: text/xml; charset=utf-8")
?>
<data>
<?php 
    if(isset($this->product)){
	$product = $this->product;
?>
	<product>
          <id><?php echo $product['id']?></id>
          <icon><?php echo $product['icon_link']?></icon>
          <name><?php echo $product['name']?></name>
          <version><?php echo $product['version']?></version>
          <title_game><?php echo $product['title']?></title_game>
	</product>
<?php }// end if
    else if(isset($this->list)){
        foreach($this->list as $product){
?>
    <product>
          <id><?php echo $product['id']?></id>
          <icon><?php echo $product['icon_link']?></icon>
          <name><?php echo $product['name']?></name>
          <version><?php echo $product['version']?></version>
          <title_game><?php echo $product['title']?></title_game>
	</product>
<?php 
    }// end foreach       
    }// end else if
?>
</data>
<?php  
        }//end else
?>